//package com.cloud.business.config;
//import com.jy.gamebox.commons.enums.EnumFactory;
//import com.jy.gamebox.commons.exception.FeignException;
//import org.springframework.cloud.openfeign.FallbackFactory;
//import org.springframework.stereotype.Component;
//
///**
// * @description :统一fallback处理
// * @Author :FuWeiJia
// * @Date :2022/3/4
// */
//@Component
//public class WebFeignFallbackFactory<T> implements FallbackFactory<T> {
//    @Override
//    public T create(Throwable cause) {
//        System.out.println("【统一fallback】异常" + cause.getMessage());
//        throw new FeignException(EnumFactory.ExceptionEnum.TIMEOUT);
//    }
//}
